-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Initial Kinetis pinctrl Implementation #43033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gmarull
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, I have some minor comments
gmarull
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I have a few minor questions/suggestions.
|
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
NXP hal pinctrl header files are required for pin groups. Update HAL revision to pull in pinctrl header files. Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl include file to define SOC specific pinctrl_soc_t structure, used to store pin configuration for pinctrl driver Signed-off-by: Daniel DeGrasse <[email protected]>
Add kinetis pinctrl driver. Driver initializes clocks for each port, and exposes the pinctrl_configure_pins function required for pinctrl support. Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl node group bindings for kinetis MCUs Signed-off-by: Daniel DeGrasse <[email protected]>
Kinetis pinctrl groups need dummy pinctrl node to populate with pinctrl options at the board level. Add one in each Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl support to mcux uart driver Signed-off-by: Daniel DeGrasse <[email protected]>
Add board level pin group definitions, and remove uart pinmux driver calls. pinctrl is enabled for uart driver Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl nodes for frdm_kw41z Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for hexiwear_k64, and enable pinctrl Signed-off-by: Daniel DeGrasse <[email protected]>
Enable pinctrl for hexiwear kw40z target Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for ip_k66f Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl nodes for frdm_k22f Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for frdm_k82f Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for frdm_kl25z Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for rddrone_fmuk66 Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for twr_ke18f Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for twr_kv58f220m Signed-off-by: Daniel DeGrasse <[email protected]>
Add pinctrl groups for usb_kw24d512 Signed-off-by: Daniel DeGrasse <[email protected]>
SOC specific wrapper files were used to include pinctrl DTSI files. Remove these in favor of including pinctrl header files directly from board pinctrl definitions. Signed-off-by: Daniel DeGrasse <[email protected]>
|
@gmarull please re-approve |
|
@dleach02 @mmahadevan108 please review |
This PR adds an initial implementation of pinctrl for kinetis series MCUs, with the UART driver enabled. It is based on the work in #39743, but uses a pin group based approach instead of pin nodes. Pin mux configurations are defined at the SOC level as constant values, and these values are referenced in the pin groups in order to select pin mux options.